package com.cqgcxy.shopping.domain;

import java.io.Serializable;
/**
 * 1.该类和数据中的表对应(类名和表名可以不同,一般我们设置为相同)
 * 2.该类的属性和表的字段对应(属性和字段名字可以不同,一般我们会设置为相同)
 * 3.该类获取属性时是执行get或set方法而不是访问成员变量
 * 	 比如：获取属性user.usercode,实际上是执行user.getUsercode()方法
 * 		设置属性user.usercode="xxxxx",实际上是执行方法 user.setUsercode("xxxxx")
 * 		属性的名称是get方法去掉前面的get，同时把后面部分第一个字母改为小写。
 * @author 方昆
 *
 */
public class User implements Serializable{

	private static final long serialVersionUID = -3162450473233964402L;
	
	private Integer id;
	//用户账号
	private String usercode;
	//用户名称
	private String username;
	//用户密码
	private String password;  
	//用户类型
	private Integer usertype;
	
	//用户的性别
	private String user_sex;
	//用户真实的名字
	private String userzhenshiname;
	
	//用户的出生的年
	private String user_nian;
	//用户的出生的月
	private String user_yue;
	//用户的出生的日
	private String user_day;
	
	//用户的电话
	private String phonenumber;
	
	//用户的邮箱
	private String email;
	
	
	
	private String oldPassword; //旧密码
	private String newPassword; //新密码
	private String rePassword;  //重新输入的密码
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsercode() {
		return usercode;
	}
	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getUsertype() {
		return usertype;
	}
	public void setUsertype(Integer usertype) {
		this.usertype = usertype;
	}
	public String getOldPassword() {
		return oldPassword;
	}
	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}
	public String getNewPassword() {
		return newPassword;
	}
	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}
	public String getRePassword() {
		return rePassword;
	}
	public void setRePassword(String rePassword) {
		this.rePassword = rePassword;
	}
	public String getPhonenumber() {
		return phonenumber;
	}
	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getUser_sex() {
		return user_sex;
	}
	public void setUser_sex(String user_sex) {
		this.user_sex = user_sex;
	}
	public String getUserzhenshiname() {
		return userzhenshiname;
	}
	public void setUserzhenshiname(String userzhenshiname) {
		this.userzhenshiname = userzhenshiname;
	}
	public String getUser_nian() {
		return user_nian;
	}
	public void setUser_nian(String user_nian) {
		this.user_nian = user_nian;
	}
	public String getUser_yue() {
		return user_yue;
	}
	public void setUser_yue(String user_yue) {
		this.user_yue = user_yue;
	}
	public String getUser_day() {
		return user_day;
	}
	public void setUser_day(String user_day) {
		this.user_day = user_day;
	}
	
	
	
}
